<template>
    <div class="content">
        <el-container>
            <el-aside width="150px">
                <el-menu default-active="difficulty" @select="onSelect">
                    <el-menu-item index="Difficulty">
                        <span>工期,重难点措施</span>
                    </el-menu-item>
                    <el-menu-item index="Risk">
                        <span>资金,法律风险措施</span>
                    </el-menu-item>
                </el-menu>
            </el-aside>
            <el-main>
                <component :is="Difficulty" v-if="value == 'Difficulty'" />
                <component :is="Risk" v-if="value == 'Risk'" />
            </el-main>
        </el-container>
    </div>
</template>

<script lang="ts" setup>
import { ref } from 'vue';
import Difficulty from './difficulty.vue';
import Risk from './risk.vue';
const value = ref('Difficulty')
const onSelect = (data: any) => {
    value.value = data
}
</script>

<style scoped>

</style>